#ifndef BOOKINFO_H
#define BOOKINFO_H

#include <QDialog>
#include "book.h"

using namespace bookandrecord;
namespace Ui {
class bookinfo;
}

class bookinfo : public QDialog
{
    Q_OBJECT

public:
    explicit bookinfo(QWidget *parent = nullptr);
    ~bookinfo();
    void showbookinfo(int confnum);
    void clearbook_line1();
    void clearbook_line2();
    void clearbook_line3();
    void F5();
private slots:
  void getData(Menu *);//得到数据的槽函数
  void on_pushButton_6_clicked();

  void on_pushButton_3_clicked();

  void on_pushButton_4_clicked();

  void on_pushButton_5_clicked();

  void on_pushButton_clicked();

  void on_pushButton_75_clicked();

  void on_pushButton_85_clicked();

  void on_pushButton_95_clicked();

  void on_pushButton_2_clicked();

  void on_comboBox_currentIndexChanged(int index);


  void on_comboBox_2_currentIndexChanged(int index);

  void on_comboBox_3_currentIndexChanged(int index);

private:
    Ui::bookinfo *ui;
    Menu *thismenu=new Menu();
    vector<Book*>bookList;
    int page_book;
    int pagesize;
    int pagebook_num;
    int confbook_num;
    int confnum;
};

#endif // BOOKINFO_H
